package javaweb_work01.main.Service;

import javaweb_work01.main.Dao.CheckStudentsDao;
import javaweb_work01.main.Entity.Students;
import javaweb_work01.main.Factory.StudentsFactory;

import java.util.List;

public class CheckService {
    //合成复用原则
    private CheckStudentsDao checkStudentsDao;

    public CheckService(){
        this.checkStudentsDao = StudentsFactory.getCheckStudensDao();
    }

    public List<Students> checkStudentsService(int num){
        return checkStudentsDao.checkStudents(num);
    }
}
